package com.banksoft.cps.dao;

import com.banksoft.cps.bean.CompanyUser;
import com.banksoft.cps.bean.query.CompanyUserQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2017/12/20.
 */
@Repository
public interface CompanyUserDao {

    CompanyUser findByAccount(String account);

    List<CompanyUser> list(CompanyUserQuery query);

    long count(CompanyUserQuery query);

    void insert(CompanyUser user);

    void update(CompanyUser user);

    CompanyUser findById(String id);
}
